package com.liukai.exam.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author liu kai
 * @since 2021-02-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_USER")
@ApiModel(value = "SysUser对象", description = "用户信息表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户编号")
    @TableId(value = "USER_ID", type = IdType.ID_WORKER)
    private Long userId;

    @ApiModelProperty(value = "班级编号")
    @TableField("CLASS_ID")
    private Integer classId;

    @ApiModelProperty(value = "学校名称")
    @TableField("SCHOOL_NAME")
    private String schoolName;

    @ApiModelProperty(value = "姓名")
    @TableField("USER_NAME")
    private String userName;

    @ApiModelProperty(value = "密码")
    @TableField("USER_PWD")
    private String userPwd;

    @ApiModelProperty(value = "角色（1学生，2教师，3管理员）")
    @TableField("USER_ROLE")
    private Integer userRole;

    @ApiModelProperty(value = "电话号码")
    @TableField("TEL")
    private Long tel;

    @ApiModelProperty(value = "邮箱")
    @TableField("EMAIL")
    private String email;

    @ApiModelProperty(value = "头像")
    @TableField("HEAD_IMG")
    private String headImg;

    @ApiModelProperty(value = "性别（0女，1男）")
    @TableField("SEX")
    private Integer sex;


}
